/**
 * 判断给定字符串是否至少含有两个red
 */
#include <bits/stdc++.h>
using namespace std;

#include <bits/extc++.h>

using llt = long long;
using vi = vector<int>;

int N, M;
string S;

bool proc(){
    auto pos = S.find("red");
    if(-1 == pos) return false;
    pos = S.find("red", pos + 1);
    return pos != -1;
}



int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    cin >> S;
    cout << (proc() ? "Yes" : "No") << endl; 
    return 0;
}